/**
 * 2018/6/29 10:07:18 Wen Jun created.
 */

package com.diver.flinkdemo.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.diver.flinkdemo.entity.xxt.Message;
import com.diver.flinkdemo.entity.xxt.StudentCard;
import com.diver.flinkdemo.entity.xxt.TerminalUnit;
import com.diver.flinkdemo.entity.xxt.User;

import java.util.List;

/**
 * 推送消息表 Service 接口
 * Created by Wen Jun on 2018/06/29.
 */
public interface IMessageService extends IService<Message> {

    /**
     * 设置提示信息
     *
     * @param
     * @param nowTime
     * @param latitude
     * @param longitude
     * @param type
     */
    void setMessage(TerminalUnit terminalUnit, Long nowTime, String latitude,
                    String longitude, Integer type, String electricity, String address, String mac);

    void setHealthMessage(String studentCardId, String name, Long nowTime, Integer heartData, Integer bpSystolic,
                          Integer bpDiastolic, String sno,
                          Integer type, String address, Double btT);
    void setRemindMessage( String studentCardId, String name,  Long nowTime, Integer type, String remindType,String url);

    Message setGuardSettingMessage(String studentCardId, String name,String latitude,String longitude,Long nowTime, Integer type,String address,String mac);

    void setUnbindMessage(String personType, String content1, String time, User u);

    void sendGuardSettingTemplateJob(Message m);

    /**
     * 获取提示信息
     *
     * @param studentCardId
     * @return
     */
    List<Message> getMessage(String studentCardId);

    void sendRemindTemplate (List<User> users, Message message, String url);



}
